﻿@using Blazor.Diagrams.Components


<div class="btn-group" role="group" style="position: absolute; z-index: 1055;">
    <Button Color="Color.Primary" @onclick="AddNode">添加节点</Button>
    <Button Color="Color.Success" @onclick="CopySelectNode">复制节点</Button>

    @*<Button Color="Color.Success" @onclick="ShowJson">保存</Button>
    <Button Color="Color.Success" @onclick="loadFormjson">加载</Button>*@
</div>
<!-- Add this where you want to show the diagram -->
<CascadingValue Value="diagram">
    <DiagramCanvas>
        @*<Widgets>
            <NavigatorWidget Width="220" Height="160" DefaultStyle="true"></NavigatorWidget>
        </Widgets>*@
    </DiagramCanvas>
</CascadingValue>
